package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 拼多多规格信息对象 tl_pdd_goods_spec
 * 
 * @author lhs
 * @date 2023-11-08
 */
public class TlPddGoodsSpec extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodId;

    /** 子规格id */
    @Excel(name = "子规格id")
    @JsonProperty(value = "spec_id")
    private Long specId;

    /** 父规格id */
    @Excel(name = "父规格id")
    @JsonProperty(value = "parent_id")
    private Long parentId;

    /** 父规格名称 */
    @Excel(name = "父规格名称")
    @JsonProperty(value = "parent_name")
    private String parentName;

    /** 规格名称 */
    @Excel(name = "规格名称")
    @JsonProperty(value = "spec_name")
    private String specName;

    /** 规则备注 */
    @Excel(name = "规则备注")

    private String specNote;

    private Long userId;

    private Long ownerId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodId(Long goodId) 
    {
        this.goodId = goodId;
    }

    public Long getGoodId() 
    {
        return goodId;
    }
    public void setSpecId(Long specId) 
    {
        this.specId = specId;
    }

    public Long getSpecId() 
    {
        return specId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setParentName(String parentName) 
    {
        this.parentName = parentName;
    }

    public String getParentName() 
    {
        return parentName;
    }
    public void setSpecName(String specName) 
    {
        this.specName = specName;
    }

    public String getSpecName() 
    {
        return specName;
    }
    public void setSpecNote(String specNote) 
    {
        this.specNote = specNote;
    }

    public String getSpecNote() 
    {
        return specNote;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodId", getGoodId())
            .append("specId", getSpecId())
            .append("parentId", getParentId())
            .append("parentName", getParentName())
            .append("specName", getSpecName())
            .append("specNote", getSpecNote())
            .toString();
    }
}
